﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"	
    xmlns:SchedulerControl="clr-namespace:SchedulerControl" xmlns:SchedulerControl_Controls="clr-namespace:SchedulerControl.Controls"  x:Class="SchedulerControl.ComposedViewControl"	
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="800" xmlns:my="clr-namespace:PersianCalendarControl.Controls;assembly=PersianCalendarControl">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        
        <Rectangle Grid.RowSpan="2">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.1,0.5" StartPoint="0.9,0.5">
        			<GradientStop Color="#FF323232" Offset="0"/>
        			<GradientStop Color="#FF333333" Offset="1"/>
        			<GradientStop Color="#FF454545" Offset="0.326"/>
        			<GradientStop Color="#FF272727" Offset="0.324"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <Rectangle Grid.Column="1">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<GradientStop Color="#FF3D3D3D"/>
        			<GradientStop Color="#FF3D3D3D" Offset="0.812"/>
        			<GradientStop Color="#FF3D3D3D" Offset="0.51"/>
        			<GradientStop Color="#FF9B6420" Offset="0.958"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <Rectangle Grid.Column="1" Margin="0,15,0,0" Opacity="0.58">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<GradientStop Color="#FF0E0E0E" Offset="0.113"/>
        			<GradientStop Color="#6D454545" Offset="1"/>
        			<GradientStop Color="#FF0E0E0E"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <Rectangle Grid.Column="1" HorizontalAlignment="Left" Width="20">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="1.325,0.5" StartPoint="-0.325,0.5">
        			<GradientStop Color="#FF323232" Offset="0.197"/>
        			<GradientStop Color="#FF323232" Offset="0.525"/>
        			<GradientStop Color="#00323232" Offset="0.798"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <TextBlock x:Name="tbTimeSpanTitle" Grid.Column="1" Margin="5,5,8,5" TextWrapping="Wrap" FontFamily="/SchedulerControl;component/Fonts/Fonts.zip#B Mitra" Foreground="#FFD8D8D8" FontSize="18" HorizontalAlignment="Left" Width="300" />
        <Button x:Name="btnNavigateBack" Style="{StaticResource NavigationButton}" Cursor="Hand" Width="13" Margin="0,17,54,15" HorizontalAlignment="Right" Click="btnNavigateBack_Click" />
        <Button x:Name="btnNavigateForth" Style="{StaticResource NavigationButton}" Cursor="Hand" Width="13" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Right" Margin="0,17,5,15" Click="btnNavigateForth_Click">
			<Button.RenderTransform>
				<CompositeTransform ScaleX="-1"/>
			</Button.RenderTransform>
		</Button>
        <Grid Grid.Column="1" Grid.Row="1" x:Name="headersGrid" Margin="0,0,18,0" />
        <ScrollViewer Grid.Row="2" Grid.ColumnSpan="2" Padding="0" BorderThickness="0" SizeChanged="ScrollViewer_SizeChanged">
            <Grid x:Name="resizableGrid" Height="1000">
        		<Grid.ColumnDefinitions>
        			<ColumnDefinition Width="100"/>
        			<ColumnDefinition Width="*"/>
        		</Grid.ColumnDefinitions>
				<SchedulerControl:TimeBandControl  x:Name="timeBandControl"  />
				<Grid  x:Name="daysLayoutGrid" Grid.Column="1" />
            </Grid>
        </ScrollViewer>
        <Rectangle Grid.Row="1">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Offset="0"/>
                    <GradientStop Offset="0"/>
        			<GradientStop Color="#FF727272" Offset="1"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <Rectangle Grid.Row="3" Grid.Column="1">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.1,0.5" StartPoint="0.9,0.5">
        			<GradientStop Color="#FF323232" Offset="0" />
        			<GradientStop Color="#FF333333" Offset="1" />
        			<GradientStop Color="#FF454545" Offset="0.326" />
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
        <Rectangle Grid.Row="3" Height="15" VerticalAlignment="Top" Grid.Column="1">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">                    
        			<GradientStop Offset="1" />
        			<GradientStop Color="#FF727272" Offset="0.331" />
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>
<!--       -->
        <Slider Grid.Column="1" Grid.Row="3" HorizontalAlignment="Right"   x:Name="zoomSlider" Width="100" Margin="0,3,37,4" Value="0" Minimum="0" Maximum="16" LargeChange="2" IsTabStop="False" ValueChanged="zoomSlider_ValueChanged" UseLayoutRounding="True" SmallChange="2"   />
        <Button Grid.Column="1" Cursor="Hand" HorizontalAlignment="Right" Grid.Row="3" Style="{StaticResource IncZoomControl}"  Width="20" Height="20" Margin="0,6,15,4" Click="IncZoomButton_Click" />
        <Button Grid.Column="1" Cursor="Hand"  HorizontalAlignment="Right" Grid.Row="3" Style="{StaticResource DecZoomControl}" Width="20" Height="20" d:LayoutOverrides="HorizontalAlignment" Margin="0,6,139,4" Click="DecZoomButton_Click" />
        <Rectangle Grid.Row="3">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.1,0.5" StartPoint="0.9,0.5">
                    <GradientStop Color="#FF323232" Offset="0" />
                    <GradientStop Color="#FF333333" Offset="1" />
                    <GradientStop Color="#FF454545" Offset="0.326" />
                    <GradientStop Color="#FF272727" Offset="0.324" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Rectangle Grid.Row="3" Height="15" VerticalAlignment="Top">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">                    
                    <GradientStop Offset="1" />
                    <GradientStop Color="#FF727272" Offset="0.331" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>


        <SchedulerControl_Controls:ChangeScheduleViewControl x:Name="DayViewCheckbox" Grid.Column="1" HorizontalAlignment="Right" Margin="0,15,380,10" Width="120" LayoutType="Day" Text="روزانه" Checked="ChangeScheduleViewControl_Checked" Unchecked="ChangeScheduleViewControl_Unchecked" />
        <SchedulerControl_Controls:ChangeScheduleViewControl x:Name="WorkWeekViewCheckbox" LayoutType="WorkWeek" Margin="0,15,256,10" Grid.Column="1" Text="هفته كاري" Checked="ChangeScheduleViewControl_Checked" Unchecked="ChangeScheduleViewControl_Unchecked" HorizontalAlignment="Right" Width="120" />
        <SchedulerControl_Controls:ChangeScheduleViewControl x:Name="WeekViewCheckbox" LayoutType="Week" Margin="0,15,132,10" Grid.Column="1" Text="هفته" Checked="ChangeScheduleViewControl_Checked" Unchecked="ChangeScheduleViewControl_Unchecked" HorizontalAlignment="Right" Width="120" d:LayoutOverrides="HorizontalAlignment" />
        <SchedulerControl_Controls:ChangeScheduleViewControl x:Name="MonthViewCheckbox" HorizontalAlignment="Right" LayoutType="Month" Margin="0,15,8,10" Width="120" Grid.Column="1" Text="ماه" Checked="ChangeScheduleViewControl_Checked" Unchecked="ChangeScheduleViewControl_Unchecked" d:LayoutOverrides="HorizontalAlignment" />
        <my:PersianDatePickerControl HorizontalAlignment="Right" Margin="0,14,23,0" Name="persianDatePickerControl" VerticalAlignment="Top" Width="25" Height="25" />
    </Grid>
</UserControl>
